#include <stdlib.h>
#include <stdio.h>
void main()
{
    char *p;
    if( ( p=(char *)malloc(100) ) == NULL )
    {
        printf("内存不够！\n");
        exit(1);
    }
    gets(p);
    printf("%s\n", p);
    free(p);
}
